<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    body{
        text-align: center;
    }
    .login{
        width: 400px;
        height: 200px;
        margin: auto;
        text-align: center;
        border: 1px solid black;
        border-radius: 1em ;
        background-image: url('img/keli.png');
        color: rgb(145, 255, 71);
    }
    .login .btn1{
        display: inline-block;
        width: 50px;
        height: 25px;
        margin-left: 50px;
        
    }
    .login .btn2{
        display: inline-block;
        width: 50px;
        height: 25px;
        margin-left: 70px; 
    }

</style>
<body>
    
    <h1>作业二</h1>
    <div style="text-align: left;margin: auto;width: 800px;height: 400px;">
        <h3>content-box和border-box 的区别</h3>
        <strong >content-box（标准盒子）:</strong>width和height决定 元素的宽高，border和padding不算在宽高里面
        <p>chrome浏览器默认是content-box</p>
        <strong>border-box(ie盒子):</strong>width和height决定 元素+padding+border
        <h3>如何从标准盒子变成ie盒子</h3>
        <p>给想要变成IE盒子模型的元素添加box-sizing：border-box</p>
    </div>
    

    <h1>作业三</h1>
    <div class="login">
        <h2>米哈游登录器</h2>
        <br>
        <form action="">
            账号：<input type="text"><br>
            密码：<input type="password"><br><br>
            <input type="button" class="btn1" onclick="javascript:window.location.href='https://www.mihoyo.com/'" value="登录">
            <input type="button" class="btn2" onclick="javascript:window.location.href='https://www.mihoyo.com/'" value="注册">
        </form>
    </div>
</body>
</html>